﻿using ECommerce.Web.Models;
using FluentValidation;

namespace ECommerce.Web.Validation.ModelValidators
{
    public class BasketItemValidator : AbstractValidator<BasketItem>
    {
        public BasketItemValidator()
        {
            RuleFor(x => x.Quantity).GreaterThan(-1);
        }
    }
}
